package com.wr.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 王瑞
 * @Description 用面向对象的思想把sqlMapConfig.xml文件封装炒年糕一个对象:
 * @date 2020/1/29 - 18:52
 */
public class Configuration {

    private DataSource dataSource;

    /*
    * 注意：这里的map集合的key 将会用mapper.xml的每个sql语句的statemenId来存储
    * statementId是有namaapace加上id来组成的sql唯一标识
    * 而value值就是封装好的statement对象
    * */
    private Map<String,MappedStatement> map  = new HashMap<String, MappedStatement>();


    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMap() {
        return map;
    }

    public void setMap(Map<String, MappedStatement> map) {
        this.map = map;
    }
}

